import pandas as pd
import numpy as np
from matplotlib import pyplot as plt
plt.switch_backend('agg')
t=pd.read_csv("./data/E_1.txt",header=None)
x=np.arange(0,28.01,0.01)
plt.figure()
for i in range(0,2):
    yi=t.iloc[i,0:2801]
    plt.plot(x,yi)
l=["sp"+str(i+1) for i in range(0,2)]
plt.legend(l)
plt.savefig('./figure/E_1.eps')

t=pd.read_csv("./data/E_2.txt",header=None)
x=np.arange(0,50.01,0.01)
plt.figure()
for i in range(0,2):
    yi=t.iloc[i,0:5001]
    plt.plot(x,yi)
l=["sp"+str(i+1) for i in range(0,2)]
plt.legend(l)
plt.savefig('./figure/E_2.eps')
